<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<center>
		<a href="${pageContext.request.contextPath}/student/list.do">显示全部</a>  
		<a href="${pageContext.request.contextPath}/add.jsp">增加</a>  
		<table border=1px>
			<tr>
				<th>编号</th>
				<th>姓名</th>
				<th>年龄</th>
				<th>住址</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${list}" var="student">
				<tr>
					<td>${student.id }</td>
					<td>${student.name }</td>
					<td>${student.age }</td>
					<td>${student.address }</td>
					<td>
						<a href="${pageContext.request.contextPath}/student/update.do?id=${student.id}">修改</a> &nbsp;
						<a href="${pageContext.request.contextPath}/student/delete.do?id=${student.id}">删除</a>
					</td>
				</tr>
			</c:forEach>
		</table>
		
	</center>
	
</body>
</html>